-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IF: Unification: add latest commit QC known to proposer to block extension (final part) #2090
Conversation
libraries/chain/controller.cpp
Outdated
auto bsp = std::make_shared<block_state>(ab.bhs, std::move(ab.trx_metas), | ||
std::move(ab.trx_receipts)); | ||
std::move(ab.trx_receipts), qc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::move(qc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I see no reason to copy it at all. Pass the ab.qc
to block_state
constructor as const std::optional<quorum_certificate>&
and do the is_needed
check in block_state constructor and pack *qc
there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Note:start |
Continuation of #2011. Add QC to block extension if needed.
Resolved #1586